{% extends "base.html" %}
{% block title %}Webmapper Tags{% endblock %}

{% block content %}
<h2>Select a tag for more details: </h2>
{% if tag_list %}
    <ul>
    {% for tag in tag_list %}
        <li>{{ tag.unique_name }} [
        <a href="{% url view-tag tag.pk %}">details</a> |
        <a href="{% url tag-map tag.pk %}">map</a>
        {% if tag.user %}{% ifequal user.id tag.user.id %}
        | edit
        {% endifequal %}{% endif %}
        ]</li>
    {% endfor %}
    </ul>
{% else %}
    <p>No tags currently exist.</p>
{% endif %}
{% endblock %}
